<?php

class AuctionModel extends Model
{
	
	# 更新拍卖价并锁定用户
	public function onAuction($user, $auction){
		$_au['au_id'] = $auction['au_id'];
		$_au_s['au_golds'] = $auction['au_golds'] + $auction['au_single_golds'];
		$_au_s['u_id'] = $user['u_id'];
		$result = M('PrizeAuction')->where($_au)->data($_au_s)->save();
	}
	
	
	
	
}
?>